<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/27 0027
 * Time: 下午 8:00
 */
namespace app\common\model;

use think\Model;

class Storeproduct extends Model{
    protected $resultSetType = 'collection';

    /**
     * @return \think\model\relation\HasOne
     * 获取商品店铺
     */
    public function getStore()
    {
        return $this->hasOne('store','store_id','id');
    }




}